import lazyLoadView from "./lazyLoadView";
const routerIn = [{
    path: '/',
    redirect: '/menu',
    component: () => lazyLoadView(import( /* webpackChunkName: "cite" */ './cite/cite.vue')),
    children: [{
        path: "/menu",
        name: "menu",
        component: () => lazyLoadView(import( /* webpackChunkName: "menupage" */ '@/pages/menu/menu.vue')),
        meta: {
          title: "工具菜单",
          requireAuth: true
        }
      },
      {
        path: "/home/manager",
        name: 'manager',
        component: () => lazyLoadView(import( /* webpackChunkName: "manager" */ '@/pages/home/manager.vue')),
        meta: {
          title: '人员关系管理',
          requireAuth: true,
        }
      },
      {
        path: "/home/power",
        name: "lookpower",
        component: () => lazyLoadView(import( /* webpackChunkName: "lookpower" */ '@/pages/home/lookpower.vue')),
        meta: {
          title: '权限管理',
          requireAuth: true,
        }
      },
      {
        path: "/home/otherfun",
        name: "otherFun",
        component: () => lazyLoadView(import( /* webpackChunkName: "otherFun" */ '@/pages/other/otherpage.vue')),
        meta: {
          title: "日常运维",
          requireAuth: true,
        }
      },
      {
        path: "/home/authAgent",
        name: "authAgent",
        component: () => lazyLoadView(import( /* webpackChunkName: "authagent" */ '@/pages/home/authagent.vue')),
        meta: {
          title: "人员代理管理",
          requireAuth: true
        }
      },
      {
        path: "/home/loglist",
        name: "logger",
        component: () => lazyLoadView(import( /* webpackChunkName: "loglist" */ "@/pages/home/loglist.vue")),
        meta: {
          title: "日志列表",
          requireAuth: true
        },
      },
      {
        path: "/home/dictionary",
        name: "dictionary",
        component: () => lazyLoadView(import( /* webpackChunkName: "dictionary" */ '@/pages/home/dictionary.vue')),
        meta: {
          title: "字典数据管理",
          requireAuth: true
        }
      },
      {
        path: "/home/role",
        name: "role",
        component: () => lazyLoadView(import( /* webpackChunkName: "dictionary" */ "@/pages/other/rolepage.vue")),
        meta: {
          title: "角色管理",
          requireAuth: true
        }
      },
      {
        path: "/home/devicemanager",
        name: 'deviceManager',
        component: () => lazyLoadView(import( /* webpackChunkName: "devicemanager" */ "@/pages/other/devicemanager.vue")),
        meta: {
          title: "设备管理",
          requireAuth: true
        }
      }
    ]
  },

  {
    path: "/login",
    name: "login",
    component: () => lazyLoadView(import( /* webpackChunkName:"login" */ '@/pages/login/index.vue')),
    meta: {
      title: '登录',
      requireAuth: false,
    }
  },
  {
    path: '*',
    component: () => lazyLoadView(import( /* webpackChunkName: "notfount" */ './cite/quote/404.vue')),
    name: "notfount",
    meta: {
      requireAuth: false,
      title: "找不到页面"
    }
  },
];
export default routerIn